package com.luca.sl651server;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

@SpringBootApplication
public class Sl651ServerApplication implements ApplicationRunner {

    static Logger logger = LoggerFactory.getLogger(Sl651ServerApplication.class);

    public static void main(String... args){
        new SpringApplicationBuilder()
                .sources(Sl651ServerApplication.class)
                .web(WebApplicationType.NONE)
                .run(args);
    }

    @Override
    public void run(ApplicationArguments args) throws Exception {
        if(logger.isInfoEnabled()) {
            logger.info("程序已启动....");
        }
    }
}